import type { VabRouteRecordRaw } from '../types'
import Layout from '/@vab/layouts/index.vue'
const inventoryRouter: VabRouteRecordRaw[] = [
  {
    path: '/inventory',
    name: 'Inventory',
    component: Layout,
    meta: {
      title: '库存管理',
      icon: 'inbox-2-line',
    },
    children: [
      {
        path: 'check',
        name: 'InventoryCheck',
        component: () => import('/@/views/inventoryIndex/check.vue'),
        meta: {
          title: '库存查询',
        },
      },
      {
        path: 'detailCheck',
        name: 'InventoryDetailCheck',
        component: () => import('/@/views/inventoryIndex/detailCheck.vue'),
        meta: {
          title: '库存明细查询',
        },
      },
      {
        path: 'consignSaleCheck',
        name: 'ConsignSaleCheck',
        component: () => import('/@/views/inventoryIndex/consignSaleCheck.vue'),
        meta: {
          title: '寄售库存查询',
        },
      },
      {
        path: 'warehouse',
        name: 'InventoryWarehouse',
        component: () => import('/@/views/inventoryIndex/warehouse.vue'),
        meta: {
          title: '主仓明细账',
          hidden: true,
          tabHidden: true,
          noKeepAlive: true,
        },
      },
      {
        path: 'makeWarehouse',
        name: 'InventoryMakeWarehouse',
        component: () => import('/@/views/inventoryIndex/makeWarehouse.vue'),
        meta: {
          title: '库存盘点',
          noKeepAlive: true,
        },
      },

      {
        path: 'otherOutLibrary',
        name: 'InventoryOtherOutLibrary',
        component: () => import('/@/views/inventoryIndex/otherOutLibrary.vue'),
        meta: {
          title: '其它出库',
          noKeepAlive: true,
        },
      },
      {
        path: 'otherInLibrary',
        name: 'InventoryOtherInLibrary',
        component: () => import('/@/views/inventoryIndex/otherInLibrary.vue'),
        meta: {
          title: '其它入库',
          noKeepAlive: true,
        },
      },
    ],
  },
]

export default inventoryRouter
